home *** CD-ROM | disk | FTP | other *** search
- Path: news.uit.no!news
- From: nilss@stud.cs.uit.no (Nils Peter Sudmann)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Removing a patch -A POSSIBLE SOULTION
- Date: 30 Jan 96 20:12:04 +0100
- Organization: University of Tromsoe, Norway
- Message-ID: <1177.6603T1212T240@stud.cs.uit.no>
- References: <1996Jan29.141204.23597@ludens>
- NNTP-Posting-Host: uit-or4.uit.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- On 29-Jan-96 13:12:04, genie (genie@ludens.elte.hu) wrote:
- > Hi to All,
-
- > I got a fine reaction on my latest posting about the removing a patch
- > problem,
- >so I decided to make my possibly working version available to the public.
- >Just in a nutshell, I will give an EXTREMELY SIMPLIFIED assembly code section
- >with some comments in the end. (I guess you don't like reading a lot.) Let's
- >see then...
-
- >The code for the patch which is SetFunctioned somewhere looks like this:
-
- >PatchMan: addq #1,UseCount ;how many tasks using this patch?
- ^^^^^^^^^^^^^^^^^
- This does really not help a lot if you want your progam to be 100% safe.
- Still, it does decrease the chance of crashes. The problem is that a process
- switch could (at least in teory) occur right after the PC was loaded with the
- address of your routine, but before actually executing the first instruction
- in it.
-
- There are other problems too, but I see they are addressed in another reply...
-
- --
- Nils Peter Sudmann // Using Thor v2.21/#1113, sign v1.5
- "Truth, a random variable possibly // EMAIL: nilss@stud.cs.uit.no
- containing complex numbers" // WWW: http://www.cs.uit.no/~nilss
-
-
-